{% if modal %}
<div id="modal_overlay_msg">
{% else %}
<div id="unmodal_overlay_msg">
{% endif %}
  <div id="overlay_msg_head">{% block head %}{% endblock %}</div>
  <form action="{{form_action}}"
        method="{{form_method}}">
    <div id="overlay_msg_body">{% block body %}{% endblock %}
      <div class="center">
        {% if confirm %}      
         <input type="submit"
               id="{{confirm_id}}"
               class="valid"
               value="{{confirm_value}}"
               name="{{confirm_name}}" />
        <input type="submit"
               id="close_overlay_msg"
               class="cancel"
               value="{{cancel_value}}"/>
        {% else %}
        <input type="submit"
               id="close_overlay_msg"
               value="{{close_value}}" />
        {% endif %}
      </div>      
    </div>
  </form>
</div>